package collections;

import com.google.common.collect.Sets;

import java.util.Set;

/**
 * @Author: ycy
 * @CreateDate: 2019/5/7 11:15
 */
public class SetDemo {

  public static void main(String[] args) {
    Set<Long> set = Sets.newHashSet();
    set.add(200L);
    set.add(100L);

    set.add(50L);
    set.add(100L);

    set.add(200L);
    set.add(100L);
    set.add(10L);
    set.add(20L);
    for (Long aLong : set) {
      System.out.println(aLong);
    }

  }

}
